package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.OkrStar;
import com.ruoyi.system.domain.UserStar;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Bruce on 2021/9/11 20:49
 **/
public interface OkrStarMapper {

    public int addStarUser(@Param("userId") Long userId, @Param("starUserId") Long starUserId);

    public int cancelStarUser(UserStar okrStar);

    public int isStar(UserStar okrStar);

    public List<UserStar> queryMyStarUsers(Long userId);

    public int isOkrStar(OkrStar okrStar);

    public List<OkrStar> queryMyStarOkrs(Long userId);

    public int addStarOkr(@Param("okrId") Long okrId, @Param("userId") Long userId);

    public int cancelStarOkr(OkrStar okrStar);


}
